package com.hushao.lims.weblims.repository;

import com.hushao.lims.weblims.domain.LabRegistration;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author 930588706
 * @date 18/1/21
 */
public interface LabRegistrationRepository extends JpaRepository<LabRegistration,Long> {
    /**
     * 根据教室名称或班级名称或教室名称模糊查询实验室登记表（分页）
     * @param teacherName
     * @param className
     * @param classroomName
     * @param pageable
     * @return
     */

    Page<LabRegistration> findByTeacherInfo_TeacherNameLikeAndClassInfo_ClassNameLikeAndClassroomInfo_ClassroomNameLike(String teacherName, String className, String classroomName, Pageable pageable);
}
